# -*- coding: utf-8 -*-
"""
产品模块URL配置
定义产品相关API的路由
"""

from django.urls import path, include
from rest_framework import routers
from .views import ProductViewSet

# 创建路由器并注册视图集
router = routers.DefaultRouter()
router.register(r'product', ProductViewSet)

# API URL模式
urlpatterns = [
    # 包含所有注册的视图集路由
    path('', include(router.urls)),
]